using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class GetVerifyImgRequest : GeneratedMessageLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>
		{
			private bool resultIsReadOnly;
			private GetVerifyImgRequest result;
			protected override GetVerifyImgRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override GetVerifyImgRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override GetVerifyImgRequest DefaultInstanceForType
			{
				get
				{
					return GetVerifyImgRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public SKBuiltinString_t UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public SKBuiltinString_t Pwd
			{
				get
				{
					return this.result.Pwd;
				}
				set
				{
					this.SetPwd(value);
				}
			}
			public SKBuiltinString_t ImgSid
			{
				get
				{
					return this.result.ImgSid;
				}
				set
				{
					this.SetImgSid(value);
				}
			}
			public Builder()
			{
				this.result = GetVerifyImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(GetVerifyImgRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private GetVerifyImgRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					GetVerifyImgRequest other = this.result;
					this.result = new GetVerifyImgRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override GetVerifyImgRequest.Builder Clear()
			{
				this.result = GetVerifyImgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override GetVerifyImgRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new GetVerifyImgRequest.Builder(this.result);
				}
				return new GetVerifyImgRequest.Builder().MergeFrom(this.result);
			}
			public override GetVerifyImgRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override GetVerifyImgRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is GetVerifyImgRequest)
				{
					return this.MergeFrom((GetVerifyImgRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override GetVerifyImgRequest.Builder MergeFrom(GetVerifyImgRequest other)
			{
				return this;
			}
			public override GetVerifyImgRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override GetVerifyImgRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(GetVerifyImgRequest._getVerifyImgRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = GetVerifyImgRequest._getVerifyImgRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasUserName)
							{
								builder2.MergeFrom(this.UserName);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.UserName = builder2.BuildPartial();
							continue;
						}
						if (num3 == 26u)
						{
							SKBuiltinString_t.Builder builder3 = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasPwd)
							{
								builder3.MergeFrom(this.Pwd);
							}
							input.ReadMessage(builder3, extensionRegistry);
							this.Pwd = builder3.BuildPartial();
							continue;
						}
						if (num3 == 34u)
						{
							SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder();
							if (this.result.hasImgSid)
							{
								builder4.MergeFrom(this.ImgSid);
							}
							input.ReadMessage(builder4, extensionRegistry);
							this.ImgSid = builder4.BuildPartial();
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public GetVerifyImgRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public GetVerifyImgRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public GetVerifyImgRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public GetVerifyImgRequest.Builder SetUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public GetVerifyImgRequest.Builder SetUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgRequest.Builder MergeUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasUserName && this.result.userName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.userName_ = SKBuiltinString_t.CreateBuilder(this.result.userName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.userName_ = value;
				}
				this.result.hasUserName = true;
				return this;
			}
			public GetVerifyImgRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = null;
				return this;
			}
			public GetVerifyImgRequest.Builder SetPwd(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasPwd = true;
				this.result.pwd_ = value;
				return this;
			}
			public GetVerifyImgRequest.Builder SetPwd(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasPwd = true;
				this.result.pwd_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgRequest.Builder MergePwd(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasPwd && this.result.pwd_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.pwd_ = SKBuiltinString_t.CreateBuilder(this.result.pwd_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.pwd_ = value;
				}
				this.result.hasPwd = true;
				return this;
			}
			public GetVerifyImgRequest.Builder ClearPwd()
			{
				this.PrepareBuilder();
				this.result.hasPwd = false;
				this.result.pwd_ = null;
				return this;
			}
			public GetVerifyImgRequest.Builder SetImgSid(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasImgSid = true;
				this.result.imgSid_ = value;
				return this;
			}
			public GetVerifyImgRequest.Builder SetImgSid(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasImgSid = true;
				this.result.imgSid_ = builderForValue.Build();
				return this;
			}
			public GetVerifyImgRequest.Builder MergeImgSid(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasImgSid && this.result.imgSid_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.imgSid_ = SKBuiltinString_t.CreateBuilder(this.result.imgSid_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.imgSid_ = value;
				}
				this.result.hasImgSid = true;
				return this;
			}
			public GetVerifyImgRequest.Builder ClearImgSid()
			{
				this.PrepareBuilder();
				this.result.hasImgSid = false;
				this.result.imgSid_ = null;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UserNameFieldNumber = 2;
		public const int PwdFieldNumber = 3;
		public const int ImgSidFieldNumber = 4;
		private static readonly GetVerifyImgRequest defaultInstance;
		private static readonly string[] _getVerifyImgRequestFieldNames;
		private static readonly uint[] _getVerifyImgRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUserName;
		private SKBuiltinString_t userName_;
		private bool hasPwd;
		private SKBuiltinString_t pwd_;
		private bool hasImgSid;
		private SKBuiltinString_t imgSid_;
		private int memoizedSerializedSize = -1;
		public static GetVerifyImgRequest DefaultInstance
		{
			get
			{
				return GetVerifyImgRequest.defaultInstance;
			}
		}
		public override GetVerifyImgRequest DefaultInstanceForType
		{
			get
			{
				return GetVerifyImgRequest.DefaultInstance;
			}
		}
		protected override GetVerifyImgRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public SKBuiltinString_t UserName
		{
			get
			{
				return this.userName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public SKBuiltinString_t Pwd
		{
			get
			{
				return this.pwd_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public SKBuiltinString_t ImgSid
		{
			get
			{
				return this.imgSid_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasUserName && this.hasPwd && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.UserName);
				}
				if (this.hasPwd)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.Pwd);
				}
				if (this.hasImgSid)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.ImgSid);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private GetVerifyImgRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] getVerifyImgRequestFieldNames = GetVerifyImgRequest._getVerifyImgRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, getVerifyImgRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasUserName)
			{
				output.WriteMessage(2, getVerifyImgRequestFieldNames[3], this.UserName);
			}
			if (this.hasPwd)
			{
				output.WriteMessage(3, getVerifyImgRequestFieldNames[2], this.Pwd);
			}
			if (this.hasImgSid)
			{
				output.WriteMessage(4, getVerifyImgRequestFieldNames[1], this.ImgSid);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasPwd)
			{
				num ^= this.pwd_.GetHashCode();
			}
			if (this.hasImgSid)
			{
				num ^= this.imgSid_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			GetVerifyImgRequest getVerifyImgRequest = object_0 as GetVerifyImgRequest;
			return getVerifyImgRequest != null && (this.hasBaseRequest == getVerifyImgRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(getVerifyImgRequest.baseRequest_))) && (this.hasUserName == getVerifyImgRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(getVerifyImgRequest.userName_))) && (this.hasPwd == getVerifyImgRequest.hasPwd && (!this.hasPwd || this.pwd_.Equals(getVerifyImgRequest.pwd_))) && (this.hasImgSid == getVerifyImgRequest.hasImgSid && (!this.hasImgSid || this.imgSid_.Equals(getVerifyImgRequest.imgSid_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>.PrintField("Pwd", this.hasPwd, this.pwd_, writer);
			GeneratedMessageLite<GetVerifyImgRequest, GetVerifyImgRequest.Builder>.PrintField("ImgSid", this.hasImgSid, this.imgSid_, writer);
		}
		public static GetVerifyImgRequest ParseFrom(byte[] data)
		{
			return GetVerifyImgRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private GetVerifyImgRequest MakeReadOnly()
		{
			return this;
		}
		public static GetVerifyImgRequest.Builder CreateBuilder()
		{
			return new GetVerifyImgRequest.Builder();
		}
		public override GetVerifyImgRequest.Builder ToBuilder()
		{
			return GetVerifyImgRequest.CreateBuilder(this);
		}
		public override GetVerifyImgRequest.Builder CreateBuilderForType()
		{
			return new GetVerifyImgRequest.Builder();
		}
		public static GetVerifyImgRequest.Builder CreateBuilder(GetVerifyImgRequest prototype)
		{
			return new GetVerifyImgRequest.Builder(prototype);
		}
		static GetVerifyImgRequest()
		{
			GetVerifyImgRequest.defaultInstance = new GetVerifyImgRequest().MakeReadOnly();
			GetVerifyImgRequest._getVerifyImgRequestFieldNames = new string[]
			{
				"BaseRequest",
				"ImgSid",
				"Pwd",
				"UserName"
			};
			GetVerifyImgRequest._getVerifyImgRequestFieldTags = new uint[]
			{
				10u,
				34u,
				26u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.GetVerifyImgRequest.Descriptor, null);
		}
	}
}
